#define _CRT_SECURE_NO_WARNINGS 1

#include"SeqList.h"
struct S s;

test1()
{
	SLPushBack(&s, 1);
	SLPushBack(&s, 2);
	SLPushBack(&s, 3);
	SLPushBack(&s, 4);
	SLPushBack(&s, 5);
	SLPushBack(&s, 6);
	SLPushBack(&s, 7);
	SLPushBack(&s, 8);
	SLPushBack(&s, 9);
	SLPrint(&s);


	SLDestroy(&s);
}

void test2()
{
	SLInit(&s);
	SLPushBack(&s, 1);
	SLPushBack(&s, 2);
	SLPushBack(&s, 3);
	SLPushBack(&s, 4);
	SLPushBack(&s, 5);
	SLPushBack(&s, 6);
	SLPushBack(&s, 7);
	SLPushBack(&s, 8);
	SLPushBack(&s, 9);
	SLPrint(&s);

	SLInsert(&s, 4, 10);
	SLPrint(&s);

	SLInsert(&s, 0, 40);
	SLPrint(&s);

	SLErase(&s, 5);
	SLPrint(&s);
	
	SLModify(&s, 2, 30);
	SLPrint(&s);

	SLErase(&s, 0);

	SLDestroy(&s);
}

int main()
{
	test2();
	
	return 0;
}